import api from "../utils/api";
import { TABLE } from "../constants/api";

const _api = api(TABLE);

export default {
  getCounts: dataKey => _api('counts', { params: { dataKey }, method: 'post' }),
  getDatas: data => _api('datas', { method: 'post', params: data }),
  getMaintainDatas: data => _api('datas', {method: 'post', params: data})
};